<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript" src="${res}/js/prp_attach.js"></script>
<input id='auditflag' type='hidden' value='${param.auditflag}'>


<div class="t_bar">
	${param.title1 }
</div>
<table  id="tabaccessory" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			
			<thead >
				<tr>
			<th width="10%">序号</th>
			<th width="45%">附件名称</th>
			<th width="45%">备注</th>
		</tr>
			</thead>
			<tbody id="tab">
					
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/accessory/list1" var="list">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr align="center">
						
						<td align="center">
							<span   name="accessory/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<%-- <td align="center">
						   <x:out select="$list/accessory_type_name" />
						</td> --%>
						<td align="left">
							<x:out select="$list/accessory_designation_name" />
						</td>
						<td align="left">
						  <x:out select="$list/remark_name" />
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				<script type="text/javascript">
						showAllDateTag("tabaccessory");
				</script> 
				</table>
			<br>
<div class="t_bar">
	${param.title2 }
</div>
<table  id="tabaccessory1" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			
			<thead >
				<tr>
			<th width="10%">序号</th>
			<th width="45%">附件名称</th>
			<th width="45%">备注</th>
		</tr>
			</thead>
			<tbody id="tab">
					
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/accessory/list2" var="list">
				
					<tr align="center">
						
						<td align="center">
							<span   name="accessory/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<%-- <td align="center">
						   <x:out select="$list/accessory_type_name" />
						</td> --%>
						<td align="left">
						   <x:out select="$list/accessory_designation_name" />
						</td>
						<td align="left">
						 <x:out select="$list/remark_name" />
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				
				</table>
				
<br>

<div class="t_bar">
	${param.title3 }
</div>
<table  id="tabaccessory2" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			
			<thead >
				<tr>
			
			<th width="10%">序号</th>
			<th width="45%">附件名称</th>
			<th width="45%">备注</th>
		</tr>
			</thead>
			<tbody id="tab">
					
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/accessory/list3" var="list">
					
					
					<tr align="center">
						
						<td align="center">
							<span   name="accessory/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<%-- <td align="center">
						     <x:out select="$list/accessory_type_name" />
						</td> --%>
						<td align="left">
						   <x:out select="$list/accessory_designation_name" />
						</td>
						<td align="left">
						 <x:out select="$list/remark_name" />
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				
				</table>
<br>				


<div class="t_bar">
	${param.title4 }
</div>
<table  id="tabaccessory3" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			
			<thead >
				<tr>
					<th width="10%">序号</th>
			<th width="45%">附件名称</th>
			<th width="45%">备注</th>
				</tr>
			</thead>
			<tbody id="tab">
					
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/accessory/list4" var="list">
					
				
					<tr align="center">
						
						<td align="center">
							<span   name="accessory/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
					<%-- 	<td align="center">
						   <x:out select="$list/accessory_type_name" />
						</td> --%>
						<td align="left">
						   <x:out select="$list/accessory_designation_name" />
						</td>
						<td align="left">
						 <x:out select="$list/remark_name" />
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				
				</table>
				
<br>
<div class="t_bar">
	${param.title5 }
</div>
<table  id="tabaccessory4" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			
			<thead >
				<tr>
							<th width="10%">序号</th>
			<th width="45%">附件名称</th>
			<th width="45%">备注</th>
				</tr>
			</thead>
			<tbody id="tab">
					
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/accessory/list5" var="list">
					
				
					<tr align="center">
						
						<td align="center">
							<span   name="accessory/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<%-- <td align="center">
						   <x:out select="$list/accessory_type_name" />
						</td> --%>
						<td align="left">
						   <x:out select="$list/accessory_designation_name" />
						</td>
						<td align="left">
						 <x:out select="$list/remark_name" />
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				
				</table>
<br>
<div class="t_bar">
	${param.title6 }
</div>
<table  id="tabaccessory5" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			
			<thead >
				<tr>
							<th width="10%">序号</th>
			<th width="45%">附件名称</th>
			<th width="45%">备注</th>
				</tr>
			</thead>
			<tbody id="tab">
					
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/accessory/list6" var="list">
					
				
					<tr align="center">
						
						<td align="center">
							<span   name="accessory/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<%-- <td align="center">
						   <x:out select="$list/accessory_type_name" />
						</td> --%>
						<td align="left">
						   <x:out select="$list/accessory_designation_name" />
						</td>
						<td align="left">
						 <x:out select="$list/remark_name" />
						</td>
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				
				</table>
<br>



<div class="t_bar">本申请所附材料清单</div>
<table  border="0" cellspacing="0" cellpadding="0" class="table01 t_css" style="*border-bottom: #a1c0dc 1px solid;">
		<tr>
			<c:choose>
				<c:when test="${status==10}">
					<c:set var="colspanVar" scope="page">7</c:set>
					<c:set var="widthVar1" scope="page">7</c:set>
					<c:set var="widthVar2" scope="page">30</c:set>
					<c:set var="widthVar3" scope="page">7</c:set>
					<c:set var="widthVar4" scope="page">25</c:set>
					<c:set var="widthVar5" scope="page">10</c:set>
				</c:when>
				<c:otherwise>
					<c:set var="colspanVar" scope="page">8</c:set>
					<c:set var="widthVar1" scope="page">8</c:set>
					<c:set var="widthVar2" scope="page">50</c:set>
					<c:set var="widthVar3" scope="page">10</c:set>
					<c:set var="widthVar4" scope="page">25</c:set>
					<c:set var="widthVar5" scope="page">10</c:set>
				</c:otherwise>
			</c:choose>
			<td colspan="${colspanVar}"><strong>注意事项：</strong><br />
				1.下表附件，请按照附件文件的要求，每条记录以一个文件形式上传，如果有多个文件则请先合并为一个文件后再上传。<br>
				2.每个附件材料的复印件或者原件，以彩色扫描或者拍照的形式，确保足够清晰、可辨，否则将影响单位信息的审核，甚至专项资金的审批拨付。<br>
			</td>
		</tr>
		</table>			
<table id="prpContent_upload"   border="0" cellspacing="0"width="100%" cellpadding="0" class="table01 t_css"
	style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr>
			<th width="8%">序号</th>
			<th width="30%">附件名称</th>
			<th width="7%">是否必备材料</th>
			<th width="25%">下载</th>
		</tr>
	</thead>
	<tbody>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/content/content" var="content">
			<tr>
			    <c:set var="seq_no"><x:out select="$content/@seq_no" /></c:set>
				<td align="center">&nbsp;${index+1}</td>
				<td><x:out select="$content/name" /></td>
				<td align="center"><x:out select="$content/berif" /></td>
				
				<td>
					<span id="file_code${seq_no}" style="display:none"><x:out select="$content/file_code" /></span>
					<c:set var="file_code"><x:out select="$content/file_code" /></c:set>
					<c:if test="${file_code!=''}">
					<a id="content_downLoadFile0" href="${ctx}/file/ajax-filedownload?fileCode=${file_code}" class="link_x"><x:out select="$content/file_name" /></a>
					&nbsp;&nbsp;<br>(上传时间<x:out select="$content/file_date" />)</c:if>&nbsp;
				</td>

			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
